tools/libxl: Extra management APIs for the save helper
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Jun 2015 11:41:06 +0000 (12:41 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:53 +0000 (11:22 +0100)
commitfa6b3e17355a7e7736f1b0a01214b3eb9dcde6c7
tree14b094f3121235ba055dc0e6610ea9929760d50b
parented8d3c56aaad09d0a4273deed08290d9660b3994
tools/libxl: Extra management APIs for the save helper

With migration v2, there are several moving parts needing to be
juggled at once.  This requires the error handling logic to be able to
query the state of each moving part, possibly before they have been
started, and be able to cancel them.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Don't force _init() to be mandatory
v3: Adjust helper_{stop,failed,done} to use libxl__save_helper_inuse()
v2: Add an _init() function which allows _inuse() to be safe to call even
    before the save helper has started.
tools/libxl/libxl_internal.h
tools/libxl/libxl_save_callout.c